package router

import (
	ctrl "a-admin/web/controller"

	"github.com/gofiber/fiber/v2"
)

func InitSysDeptRoutes(r fiber.Router) {
	server := ctrl.NewSysDeptController()
	rg := r.Group("/system/dept")
	{
		rg.Get("/list/exclude/:id", server.ExcludeChild)
		rg.Get("/list", server.List)
		rg.Get("/getTree", server.GetTree)
		rg.Get("/getTreeSelect", server.GetTreeSelect)
		rg.Get("/:id", server.Get)
		rg.Delete("/:ids", server.Del)
		rg.Post("", server.Add)
		rg.Put("", server.Edit)
	}
}
